<h1 xmlns="http://www.w3.org/1999/html">Location Info <%= @cuser.login unless @cuser.nil? %></h1>

<%= error_messages_for :cartasur_location %>
<% if flash[:error] %>
    <div style="color: #a11328;" class="error"><%= flash[:error] %></div>
<% end %>
<div id="page">
  <% if flash[:alert] %>
      <p class="flash-error"><%= flash[:alert] %></p>
  <% end %>
  <% if flash[:notice] %>
      <p class="flash-notice"><%= flash[:notice] %></p>
  <% end %>
  <%= yield %>
</div>
Details for location
<p>
  <%= form_for  @location, :url => { :action => "#edit" } do |f| %>
<table cellpadding="5" cellspacing="10">
  <th align="center"> </th>
  <tr>
    <td align="right"><%= f.label :name, 'Name of location :', :class => 'form_text_field_label'%></td>
    <td><%= f.label @location.name,  :class => 'form_text_field_label' %></td>
  </tr>
  <tr>
    <td align="right"><%= f.label :locationtype, 'Type : '.html_safe, :class=> 'form_text_field_label' %></td>
    <td><%= f.label @location.locationtype, :class=>'form_text_field_label' %></td>
  </tr>
  <tr>
    <td align="right"><%= label_tag :district, 'District : ', :class=> 'form_text_field_label' %></td>
    <td><%= f.label @location.district, :class => 'form_text_field_label' %></td>
  </tr>
  <tr>
    <td align="right"><%= label_tag :coordinates, 'Coordinates :',:class=> 'form_text_field_label' %></td>
    <td><label class='form_text_field_label'><%=  @location.aslatlng %></label></td>
  </tr>
</table>

    <% end %>
<p style="margin-left: 50px;"><%= link_to (t 'cartasur.locations.backtolocations'), cartasur_locations_path %></p>
